import { httpGet, httpPost } from "@/appBase/request";
import { toData, toPageData, toPageQueryParam } from "@/appBase/utils";

/**
 * 通过用户名模糊查询用户列表
 * @param {Object} queryParam
 * @param {String} queryParam.userName 用户名
 */
export function userListByName(queryParam) {
    return httpGet(`/user/list/byName`, queryParam).then((result) => toData(result));
}

/* 
获取联系人姓名列表
*/
export function queryContactUsers(queryParam) {
    return httpGet(`/contacts/list/byName`, queryParam).then((result) => toData(result));
  }